home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3860 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: dawn.mmm.com!news
  2. From: kjhopps@mmm.com (Kevin J Hopps)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: class declaration
  5. Date: 26 Jan 1996 13:03:59 GMT
  6. Organization: 3M - St. Paul, MN  55144-1000 US
  7. Message-ID: <4eajfv$hgq@dawn.mmm.com>
  8. References: <4dphp6$1bp@noc2.drexel.edu> <4drakm$hnu@grid.direct.ca> <ALUN.CHAMPION.96Jan22114418@g7240065.bridge.bst.bls.com> <4e6ngs$f2d@classic.iinet.com.au>
  9. Reply-To: kjhopps@mmm.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. John A Ng (ng@mitswa.com.au) wrote:
  13. > >: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman) wrote:
  14.  
  15. [ question about whether parameter names are required in prototypes ]
  16.  
  17. > The parameter variable name is ignored by the compiler.  You can either
  18. > not put anything there, or you can have a (legal) variable name (whether
  19. > the name IS or NOT the same as that actually defined in the body).  This
  20. > is is allowed for not so much for documentation as for the convenience
  21. > of being able to copy & paste between body and header declaration.
  22.  
  23. > The typical thing is to leave the variable name in both body and header.
  24.  
  25. IMHO, leaving a nicely chosen parameter name in the interface is good
  26. documentation, adding significantly to its understandability.
  27. --
  28. Kevin J. Hopps                  e-mail: kjhopps@mmm.com
  29. 3M Company                      phone:  (612) 737-4643
  30. 3M Center, Bldg. 235-2D-57      fax:    (612) 737-2700
  31. St. Paul, MN 55144-1000         Opinions are my own.  I don't speak for 3M.
  32.     But 3M speaks for me -- I did not write the following line:
  33.  
  34. Opinions expressed herein are my own and may not represent those of 3M.
  35.